package net.xdclass.online_xdclass.mapper;

import net.xdclass.online_xdclass.model.entity.User;
import net.xdclass.online_xdclass.utils.JsonData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {

//    @Param()里面的参数说明的是在xml文件里面传进来的是什么名字
    int save(User user);

    User findByPhone(@Param("phone")String phone);

    User findByPhoneAndPwd(@Param("phone") String phone, @Param("pwd") String pwd);

    User findByUserId(@Param("user_id") Integer userId);


}
